package qc.module.duty.mapper;

import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;
import qc.module.duty.dto.schedule.DutyScheduleShiftMemberDto;
import qc.module.duty.entity.DutyScheduleMember;


import java.util.List;

@Mapper
public interface DutyScheduleMemberMapper {
    DutyScheduleMemberMapper MAPPER = Mappers.getMapper(DutyScheduleMemberMapper.class);

    @Mapping(target = "memberid", source = "member")
    @Mapping(target = "member", ignore = true)
    DutyScheduleShiftMemberDto toTeamMemberDto (DutyScheduleMember en);

    List<DutyScheduleShiftMemberDto> toTeamMemberDtoList(List<DutyScheduleMember> list);
}